﻿using System;

namespace Shuba.Model
{
    [Serializable]
    public class RegionalInfo
    {
        public RegionalInfo()
        {
        }

        public RegionalInfo(string regionalID, string regionalName, string EntryBy, DateTime EntryDate, string UpdateBy, DateTime UpdateDate)
        {
            this.RegionalID = regionalID;
            this.RegionalName = regionalName;
            this.EntryBy = EntryBy;
            this._EntryDate = EntryDate;
            this.UpdateBy = UpdateBy;
            this._UpdateDate = UpdateDate;
        }

        public RegionalInfo(string regionalID, string regionalName, string EntryBy, DateTime EntryDate, string UpdateBy, DateTime UpdateDate, string ActType)
        {
            this.RegionalID = regionalID;
            this.RegionalName = regionalName;
            this.EntryBy = EntryBy;
            this._EntryDate = EntryDate;
            this.UpdateBy = UpdateBy;
            this._UpdateDate = UpdateDate;
            this.ActType = ActType;
        }
        public string RegionalID { get; set; }
        public string RegionalName { get; set; }
        public string EntryBy { get; set; }

        private DateTime _EntryDate = DateTime.Now;
        public DateTime EntryDate
        {
            get { return _EntryDate; }
            set { _EntryDate = value; }
        }
        public string UpdateBy { get; set; }

        private DateTime _UpdateDate = DateTime.Now;
        public DateTime UpdateDate
        {
            get { return _UpdateDate; }
            set { _UpdateDate = value; }
        }
        public string ActType { get; set; }

        public override string ToString()
        {
            return RegionalID + " - " + RegionalName + " - " + EntryBy + " - " + _EntryDate.ToString("yyyy MMM dd hh:mm:ss") + " - " + UpdateBy + " - " + _UpdateDate.ToString("yyyy MMM dd hh:mm:ss");
        }

        public string ToString4Audit()
        {
            return "NAME: " + RegionalName + ", ENTRY_BY: " + EntryBy + ", ENTRY_DT: " + _EntryDate.ToString("yyyy MMM dd hh:mm:ss") + ", UPDATE_BY: " + UpdateBy + ", UPDATE_DT: " + _UpdateDate.ToString("yyyy MMM dd hh:mm:ss");
        }
    }
}
